package com.iafme.mapper;

import com.iafme.dto.res.MemberResDTO;
import com.iafme.model.Member;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author summer
 * @since 2025/01/05 21:14:41
 */
@Mapper
public interface MemberMapper extends BaseMapper<Member> {

    /**
     * 根据id查询会员
     * @param id
     * @return
     */
    MemberResDTO findById(Integer id);

    List<MemberResDTO> lists();
}
